package com.medical.medical.mapper;

import com.medical.medical.entity.Department;
import com.medical.medical.entity.Doctor;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface DoctorManageMapper {
    /**
     * @description: 查询科室详细信息
     * @author: 皮皮虾
     * @date: 2022/9/14
     * @param
     * @return:
     */
    public Department listDepartment(@Param("departmentId") String departmentId);


    /**
     * @description: 查询科室中的所有医生
     * @author: 皮皮虾
     * @date: 2022/9/14
     * @param
     * @return:
     */
    public List<Doctor> allDoctor();

    /**
     * @description:根据医生id查询医生详细信息
     * @author: 皮皮虾
     * @date: 2022/9/14
     * @param
     * @return:
     */
    public Doctor listDoctor(@Param("dId")String dId);

    /**
     * @description:添加医生信息
     * @author: 皮皮虾
     * @date: 2022/9/14
     * @param
     * @return:
     */
    public int addDoctor(@Param("dName") String dName,
                         @Param("dAge")String dAge,
                         @Param("dGender")String dGender,
                         @Param("dDesc")String dDesc,
                         @Param("dPost")String dPost,
                         @Param("registrationFee")String registrationFee,
                         @Param("dHospital")String dHospital,
                         @Param("dDepartment")String dDepartment,
                         @Param("dAccount")String dAccount,
                         @Param("phone")String phone,
                         @Param("password")String password);


    /**
     * @description:根据医生id修改医生信息
     * @author: 皮皮虾
     * @date: 2022/9/14
     * @param
     * @return:
     */
    public int reviseDoctor(@Param("dName") String dName,
                            @Param("dId")String dId,
                            @Param("dAge")String dAge,
                            @Param("dGender")String dGender,
                            @Param("dDesc")String dDesc,
                            @Param("dPost")String dPost,
                            @Param("dDepartment")String dDepartment,
                            @Param("dHospital")String dHospital);

    /**
     * @description:根据医生id删除医生信息
     * @author: 皮皮虾
     * @date: 2022/9/14
     * @param
     * @return:
     */
    public int delDoctor(String dId);

    List<Department> getDepartmentByid(Integer workforcesDepartment);
}
